testing rest service