fixes and tests for configuration