Fix determination of pass in `PBv3TestTools::toggleOutput`.
Previously the return value from individual PBv3TestTools::toggleOutputHelper
was directly merged into the overall JSON structure. This meant overwriting the "passed" field with the latest result.
This fixes it by adding a helper PBv3Utils::mergeResult
function that merges the new result into the overall result using the following logic:
- "passed" is the AND of the two inputs. This field must already be present in both.
- Contents of base is updated using
merge_patch
.