Fixed broken CMFactory spec