Refactored test. Configuration class moved to test class