fail test on tear down

A test will now issue a failure if a teardown function generates an exception.

Fixes #100