test code for search arrays