we could perhaps test that the cloning of the handle actually took place
your test just shows that the parsing succeeds but nothing is actually written to 2
something like would do
`dir /Z > foo 2<&1`
`findstr . foo > NUL & if errorlevel 1 (echo not redirected) else echo redirected`