add some _internal unit tests + payload in headers of put/patch