Allow saving config from anywhere
Fix tests
Add tests