added tests for database creation and cache entries removal from database and filesystem