test adding file to directory