Tempfile test suite refactoring.