Fix tests for Xcode 6.1
Don’t crash if sample is called on @[]

Fixes #12