Unit tests for streams and transactions.