Cleanup swe solver, speed up tests and switch to py.test