fixed test.
removed extraneous iteration