Minor improvements to Table class and add tests