using apiary to test rest client