converting tests to XCTest