fix and test for issue 203

link to issue: https://github.com/Khan/live-editor/issues/203