Added tests for IOStream:reading,writing,closed,set_close_callback methods.