more tests and fixes for read vector