more tests for cache and db layer