tests for stream bug