add test case to reproduce. refs #406
use offset to search events. refs #406
Merge pull request #438 from eller86/fix-406

Fix 406