wrote test code for traversals
more test code done