Add Log4j and a test case