TEST/PEP: Fix wrong Error check; flake8 fixes
TEST/PEP: Fix wrong Error check; flake8 fixes

Minor tweaks to fix existing tests.

More tests need to be added for the new expand/contract

Closes #27. (Actually, fdfe1a2 closed it.)

bskinn/sphobjinv