Modifications to printf redirection test.