fix click/touchevt creation in tests