tests: store the screenshot for failed tests