Added formatting support for output
Moved iterator tests to their own file