added test to verify XCTest failure method is called with the correct arguments