introduced helper functions to increase the 
readability and decrease the overall length of the
test suite.