Adjust cipher_version test
Explicitly close db in tests following cipher_migrate