Test for the virtual directory

Calling the function twice and checking whether the files created are different or not . Am i on the right track :( ?