Fix whitespace in counter test
Add tests and fixes for stream algebra operators