test rest service