updated locality tester