Add test for loading config from an object.