fixed rest client test