Implement rest service unit test