Add unittest for UniqueKeyedService.

A simple unittest to cover the UniqueKeyedService. 
Maybe later we should add a more sophisticated auto-gen test data with laws.
For now, this is just a simple insurance for the service that is used by us.