iterator: use bool for const definition
tests: some additions and fixes