Don't leave lingering files in doc tests

Closes #11234