[test] Further copy permissions tests and tests for checking inheritance of permissions when copying collections and resources
[bugfix] correct test for checking whether dest doc exists