security: In IdentityManager.deleteIdentity, handle the case where there is not any default identity yet.
unit_tests: In test_identity_methods, use a temorary SQLite file.