changed logging to log4j2, refactored the test to work without System.out - introduced some thread problems otherwise