test searching in outer contexts