Convert test case to Swift.