Unit test for vector2 class