Added tests for events, added stop ui action