added more tests for java classes.