more informative error message if test fails due to warnings

cf. #71