Add nofail function to test_helpers

This allows running a command that might fail and acting on the result
without having to set +e and set -e all over.

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>