fix typos in the configuration factory and a test to prevent such errros