vector: more unit-tests, more code that is fundamentally flawed