Added system test for reader and modified reader to read from a stream