Convert tests to XCTest