Added test setup and cleanups, implemented all tests for configs.