Added tests for queuing and clearing events in guy.