more effective stubbing of config