tests for stream collector