[Cocoa] Fix tests