Added tests to the #build_event method on the ApplicationHelper.