Testing IA, algorithm of location