Add unit tests for Haplotype and Loci classes. Fixes #122.