upgraded isFile validator, updated related test