add a key-value iterator,pass test