Added java dependency in tests pom file and updated jar packaging for java.