adds pruning tests

closes #228