Fertility Specialist

After being off birth control for 2 years and trying for a year with one miscarriage I asked and my doctor and he said he would refer me to a fertility specialist😆😆😆. I am so excited. I was just wondering about the people who have been to a fertility specialist what exacly do they do? What test do they run? Any insight would be helpful.