added user linked identities support and tests for the same