Testing getValue api for codemirror