adapted and added tests, refactored LoggerSetUp