Fixes for test_sqlitecachedbhandler