Fix test_sqlitecachedb_upgrade.py