Added tests for some stdio functions.