Some modifications to pom.xml and test file to make test work!

Update README accordingly.