Print a backtrace on error or test failure

Related to issue #12