fixed restclienttest
removed unused code