refactor user invites a friend feature spec