Added unit test for configuration factory.