Added test for input events