Immunology Testing

Has anyone’s doctor recommended immunology testing for infertility before? Because most of the drs I have seen have been awful, so I have been doing my own research and am thinking based on my situation that may be a good next step for me, just wondering if anyone has done this type of testing before.