Added in config defaults so tests work. And added config test.