Add unit tests for tables.