tests: show more details about exceptions