add rest service tests