FIX: fixed unit test for mouse move events.
MAINT: reformatted lines of codes.