added test for genotype_data function