server: add unit tests

Make test coverage >= 90%

#1019 
The `store.Store` interface is way too big :/. The only things used outside the package are:
```
Store.CompareAndDelete
Store.CompareAndSwap
Store.Create
Store.Delete
Store.Get
Store.Set
Store.Update
Store.Watch
```