Fixed bug in iOS unit tests