added tests for java classes.