Testing restAPI