     let eventJSON1 = resAfter.json?.array?.first
     let eventJSON2 = resBefore.json?.array?.first
     
-    try checkEventHasExpectedFields(json: eventJSON1, event: event1)
-    try checkEventHasExpectedFields(json: eventJSON2, event: event2)
+    try assertEventHasExpectedFields(json: eventJSON1, event: event1)
+    try assertEventHasExpectedFields(json: eventJSON2, event: event2)
   }
   
   func testThatIndexEventsReturnsCorrectNumberOfPastEvents() throws {

    let eventJSON1 = resAfter.json?.array?.first
    let eventJSON2 = resBefore.json?.array?.first
    
    checkEventHasRequiredFields(json: eventJSON1)
    checkEventHasRequiredFields(json: eventJSON2)
  }
  
  func testThatIndexEventsReturnsJSONArrayEventsHasAllExpectedFields() throws {


extension EventControllerTests {
  
  fileprivate func assertEventHasRequiredFields(json: JSON?) {
    XCTAssertNotNil(json)
    XCTAssertNotNil(json?["id"])
    XCTAssertNotNil(json?["title"])
