[Generator] [Model] added unit tests for the TableDiff class and made so...

...me refactoring in the diff API.