add test for nested search

rolled back to yesterday and this did not work;  works now as ref in #40

I had some trouble with `expect_equal` so I crudely did `[[1]]` and `[[2]]`. sorry for my incompetence.