test walk function