implement readstream test