[client][test] Arrange test code for events view