Fix bugs in redirection operators

Also make tests use new syntax