Added configuration class and a test for it