Ensure uncommitted password data is saved

Add test to ensure uncommitted password data is saved on Encrypt - even
if the encryption password is not adequate.
Fixes #3.