simplify testWithAllValuesBut implementation