make a screenshot if the test failed