Add XCTest support

XCTest uses recordFailureWithDescription:inFile:atLine:expected:
instead of failWithException: