add the test of datastream and the use of I/O stream class