Tests are getting too long and are hard to reason about, lets create some helper functions to make the test more readable and easy to extend