adding test function for getfilename()