add log4j.properties to test class path
refactor Spring stuff, reduce the default configuration and mock some stuff