Added error handling
Added error handling
Added MongoDB cursor stream tests