test dup2