fix #385 Gestures test cases

Fix an error in the test cases of gesture events