Added java dependency version in tests pom file.