test vector begin end