Check the correct service is defined.

Change-Id: Ic36b59f3d01d446f44fd92f80e8e0f5628a85e8e