Improved for testing by passing configuration by parameter
Added integration test