Fix bug in Vector.
Extract common test creator function for Vector and List class (the AbstractList test).