input-helper: fixed leaks

the socket always remained unlinked
input-helper: add touch

+ tests
events-test: run client and catch events

check if some particular events will come and if the order is alright