Fixing pivot tests