Added tests for istream and dstream.