Added tests and crypto-store initialization.