adding test for S004

hacking test for creating temp file or dir
Merge pull request #6 from pritidesai/tmpfile_test

adding test for S004