Update pom to run java version 7
Refactor Hapi terser tests