log ex if test fails