Fix return value for isDuplicate in EventStream
Add unit test for duplicate events
Merge branch 'fix-duplicate-event'

Fixes #35.