added feature spec test for user invites a friend