program to test for AD search