moved tests to src/main/test - added logging and System.exit