Adding more tests for caching database implementations