Fixed test and added plugins to pom