add a couple of tests for the doc emitting cursor events