[UPDATE] add file read and write stream tests. [FIX] read stream emits a close event, not finish event.