test add event handler to input