unit-tests for database and cache storage factory