remove unused testcode & refactor pom.xml