[server][test] Break deep nest
[server][test] Extract generic code from AssertGetEventsArg