fixed bug in config with defaults overriding everything, added two tests for config