Updated CodeMirror test to read value from CodeMirror correctly