test/event: use new API to set event crypto metadata