Use mavens test feature

With this pr, we use the test features maven provides.

When you build the jar, maven will compile the test class and will run it. If it fails, the build fails.
If it is successfull, the build will be successfull.