forget to test get iteratorType
modified to use default value
unnessessary test deleted
add matrix