Update POM.xml and fixed Maven tests