swift cocoa test