Fix spec tests

Without this patch, the spec tests test for the wrong condition when the
test should fail on unsupported platforms.