testing cursor_rect