Bug 863315 - Refactoring `sdk/event/utils` module to be more consistent with JS

- Inverted the arguments on code and unit test