Added tests for TableRow and TableRowSerializer, fixed some bugs