Left the log4j configuration file only for the tests and corrected it.