Testing selection at a single locus