Added a test and stream callback fix to handle multiple files.