Mend Tests and Add Tests Codemirror