added test for get & set directory
used is_file instead true in isUploadedFile method