cnf: add junit 4 and hamcrest core

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib: run tests with junit 4

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>