Fix broken tests on iOS