Unit test for vector