Add test code for vector classes