Add some test case and fix pom.xml