Writing a test for vector operations