prepare rest client test