fixing silly mistake when v1 is longer than v2
expanding test cases to capture previous bug