test/event: fix function arguments for crypto adapter