In this test, the config should probably also be passed a json string rather than an object - it's not really being checked in the correct implementation, but would be good to make sure that the data is consistent/make sure an error that may occur due to it not being a json string isn't causing the right error to be raised.