A1: add empty iteration test + rm trailing spaces