Add unit test for batch loading datastreams