finish vector tests, fix a bug in vector