Fix incorrect code in unit tests for iOS
Fix for beta 5