Update log4j configuration and test case