Added some functions to the unit tests to do table compares