Test cases for vector.