Added a test for replacing the root of the doc

The "add" op with an empty "path" should replace the whole document.