Fix gh-516 Use a temp dir for test recording