Added grandchildren test.

Bug fix: Tree was always walked up to the root due to an incorrect
comparison.

Now just walk up to the nearest element, and confirm it is the one we
are looking for.