Add test which faithfully reproduces exception caused by EvilCaret.