Making testExistsWhenSecondaryPreferred more predictable in behaviour