rest service + test