changed test to use cocoa api