New stream tests, a fix for the streaming line-by line, addition of reference files for stream tests