Rest client integration tests

This PR could be merged only after https://github.com/caskdata/coopr/pull/697
No, this should not be null, on the contrary. But it looks quite unclear, you are right. Thanks