MT#7535 add invite_no_refer test.

The config allow_no_refer_method is no by default.

(cherry picked from commit ea2291fa418800f628289bc9d273a4f625ed4ff9)
(cherry picked from commit a14d9c2479048b34ed334bfa2cb8e25cbb96ef86)