Added unit test for vector set function