move new dependencies to test scope and config log4j properly