tests: Add unit test for touch event handling