fix and test for issue 203

link to issue: https://github.com/Khan/live-editor/issues/203
Thank you for adding a test!