testing correctness of detection, if an object is a vector