Created a test for event controller.