You can use a variation on the following:
string $tmp =`file -q -sn`;
file -rename "tests" ;
file -es;
file -rename $tmp;