Add tests for Log4j appender