added rest client, added rest test