added legacy encryption test
key creation should never override a private or public key
removed dead code for delShareKey
added test for failed sharing
improved tests