added test for postgresql database cache