Tests for table creation