This test code base is turning into a huge monster that needs to lose weight. Need to create some helper functions