Added test for primary identity
Adding primary identity to key search results