Unit tests for controller that calls a ui event after service.