Fix the iOS 8 unit test failures

Resolves #14919.