Fix config and test for config