Allow introspection of test failures

Adds the test-var-has-failures? function that can be called inside a
deftest for, to introspect whether the test has failures.

Closes #1