Rest client integration tests

This PR could be merged only after https://github.com/caskdata/coopr/pull/697