TST: added ensure_clean file cleanup context manager for file based tests
Merge pull request #3103 from jreback/ensure_clean

TST: added ensure_clean file cleanup context manager for file based test