Fixed delegate tests on iOS.