converted to log4j2, added junit