fixing iterator testing