Fix code in tests for TablePart.