add tests for Python interface