reworking correct test for cursor move