Better function for testing table building.