Limit the amount of searching and terminate the test after 10s