Add tests coverage; Add tests for event.js