Add unittest for UniqueKeyedService.