Scalar iterator with tests