Fixed failure in  FriendEndpointTest