fix traverse test to reflect the new api