Added some unit-tests for Db and Cache classes