adding test for S004

hacking test for creating temp file or dir