wrote the functionality to compare two tables.
added more test cases.