Replaced XCTAssertEqual for XCTAssertEqualObjects

The correct assertion to use when comparing objects is `XCTAssertEqualObjects`, which uses the `isEqual:`. This change will make the test failure messages clearer.