Added better unit test for valid config