Add test for traversal() #47