Tests refactoring and cleanup

- refactored tests for log4j 1.x
- refactored tests for logback