about to refactor test_tabulate