[cache] refactor and fix DbTest::testGetServer()
Merge pull request #20 from velosipedist/fix/cache-db-tests

Fix cache db tests