Added a TestUtils class and utilized it for checking exceptions in ConfigurationTest.