Iterable trait and stage testing performance of the iteration.

This smells a bit. The duplicate code should be extracted to a common method.