Expand unit test path_traverse to check the search operation as well.