To improve readability, there’s a need to divide this test into three functions:
- function for creating GameEventPlayers.
- A function that will test whether a player is in the expected events.
- A function that will test whether an event has the expected players.
In this way every function will be smaller, easier to read and understand.