fixing isAuthorizedFile() test