Validating that a test fails

Hello,
In circle ci i want to verify that when when i pass my script bad data that it fails, i.e for me a non 0 exit code will be success. What is the best way of doing this with circleci ?