Testing DB upgrade and key store encryption changes

Updated the unit tests to test the various aspects of using the key store for the encryption key for SmartStore, including upgrade scenarios from previous encryption.  This should close out the SmartStore encryption updates story.