traverse test works for all 6 tests. Does not take into account indentation