Fix build error in service.test