iterator tests and byte reader improvments