[minor] Reapplying `ondata` function name and removing reserved events test