Added unit tests for iteration and length.