Rest client integration tests

This PR could be merged only after https://github.com/caskdata/coopr/pull/697
similar feedback for other places in the test that this is done