fixing the test file to send stdout to log too