test iterator in case where not valid after iteration
tests for database options