tests: give json matching tests a way to fail on repeated keys instead of overwriting with the last key