Refactors map cursor events tests.