Adds tests for stats package, fixes some namespace issues
and make the test goal of the maven plugin compatible with
jenkins