Endometrial function test?


Has anyone ever had an endometrial function test done? My doctor is suggesting that I do, since I lost my last pregnancy. I guess it determines whether your lining is receptive. The problem I have is that I feel that there are more likely culprits. Like I have endometriosis. Before my last IVF I had a lap done to remove the endo. Now its been 3 years since my lap and its very likely returned. Isnt this a viable thing to check into? Aka do another lap? And also I have had a previous pregnancy. So immune function is also a concern. My gut tells me that these two things are more likely but my doctor is telling me to do another test that is relatively unrelated to the endo and/or immune issues. I dont know what to do. Very frustrated.