fix(config): make tests work again

After refactoring config out of server I forgot to fix up the tests.
Make them work again.
test(config): add tests for the discovery flag