added test cases for Java version

test example schnarz is still not working