Add test case for --prunebranches option