Test touch event detection