Test class for rest client