Refactor(SearchTest): convert return variable to inline in method createTeamMemberDocument.