add unit tests, fix allele mismatch count bug