Add spec for event triggering sync event only once
Refactor test setup

- Move event test into general file
- Introduce test-utils.js for helpers for all version