work on Java and Python unit tests (not finished yet)