add feature test for user invitation