Fix the iOS 8 unit test failures

/cc @cvrebert