enable writing the stack trace for failed tests

Please have a look, 
i would be quite happy if you could merge this and release a new version.

thank you!