server: add functional tests

Make test coverage >= 90%

#1019 
empty response is confusing... i still think we should have a simple map inside the fake store.