read vector tests and fixes