Fix test to compile and run on iOS.