Tests for emulated contextmenu on touch devices

This PR adds tests for @fredj's code that emulates contextmenu events on touch devices.