This is a helper function, it is called by the next few tests. This helps consolidate the code and prevents code repetition. I updated the docstring to make this clear.