Instead of getting the config, we now get a promise. Modified the test cases to run after the promise