Add test.py to test/ and fix import