added test for invite user