Detecting Selective Sweeps with Haplotype Tests