added required code to pom.xml to deploy war. added test