Migrating tests to XCTest.
Fixing format strings.