added logging on test failure