refactor PUT tests to work with diffs