Junit tests and System.exit is a VERY bad idea, fix that.