[rspec] improved aggregate pruning and master election tests, found pruner bug