Improved ConfigProcessor and added test for it (added lost changes)