clean up tests
clean up cython file
minor fixes