Make action handling test more robust

Need to sleep before stopping the interaction because the actions are processed. The actions are processed in separate threads, so from time to time the second action finished executing first and killed the first one which made the test fail.
Add a test for multiple action type registration
Allow responses to specific grid buttons