Refactoring unit testing for table.