refactor user invites friend feature test