Improved ConfigProcessor and added test for it