Added  tests for setPatchConfig() and getPathConfig()
Reformat code