Unit test for class vector2