Fixed compile errors and added a bunch of unit tests for SalesforceSecurity library.

Good catch - already have this test in the SFKeyStoreManagerTests to ensure it is being created correctly.