Adding spec for ToTempFile behavior