Trying to fix pom file so its possible to compile it with java7 and remove dependencies that caused errors in tests