Fix cursor tests.

Rather than updating its position directly, cursor snaps now fire a
refresh event that the parent container uses to update the cursor layout
as needed. As the test block does not recognize refresh events, we need
to call `updateLayout` manually in order to verify the cursor position.