Add more tests for TableFactory.