Migrated tests to use XCTest.