miscarriage .... pathology test

Anyone ever have a pathology test done?? What do they test for? I had an ectopic pregnancy and was wondering if they test for chromosome abnormalities, whether it was an ectopic, or gender. I just don't know what to expect. Please any info is greatly appreciated!!!