According to the man page you need to specify the platform as 'OS X' and optionally the arch which can be x86_64 (default) or i386, eg.
xcodebuild test -scheme {schemename} -destination platform='OS X',arch=x86_64
If you're just building with the default destination though i've also found that you can omit the destination flag entirely