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

NB: You could use `XCTAssertEquals` here too, which compares object references (or primitive values).  This is fine too, though.