Added iter().
Fixed tests.