Fix STD{IN,OUT,ERR} and $std{in,out,err} tests.