Test service registration.