Add failed? method to TestCase object yielded in hooks

Closes #769