Add a test case for prune.