function to add pedigrees
tests for adding pedigrees