feat(server-events): add unit tests for calling xmlstats api for events