testing intersection of vectors