Fixed #1643 modify MenuTest for register touches event

modify MenuTest for register touches event