[files] remove realpath in test