Wrote a test for gen_pruning_table and fixed so it handles depth 0 correctly.