Added java tests: unit tests, integration tests, etc.