Replace Event with MouseEvent to make tests work in Firefox