code to test vector