Add test for events triggered on stream, related to #17