migrate tests to XCTest