Correct the target name
Add a (hopefully) comprehensive regression test of how stdio functionsaffect stream orientation