Adds tests for the optimal building of tables.