locus testing code