Added test and log4j