rest client and test