added unit tests for config API