Made test for traversal, and fixed found mistakes.