Completion of SparseIterator and Tests