server: add unit tests

Make test coverage >= 90%

#1019 
Because it needs to check that no Store operation is called.