Animation tests

1. Moved animation events to `core/events.js`
2. Fixed the animation selenium test