Commit Strategy factory/class and the factory test case