Enable JUnit tests in CMake

Tests can be executed with "make junit". The dependencies (hamcrest,
junit) are in the repository for now, but this will be rewritten later.
A find_module for jar files should be written, in order to remove binary
jars from the repository.