Created a function in the testing to ease comparison of match objects