Introduce equals method into Table and clean up its unit tests