testing rest client