tests with java