Multiple identities testing - Framework enhancements and first test

Adds the `add_public_identity(endpoint)` API call to the test framework.  The newly created endpoint shares a private ID with the passed in one.