Add generic tests for vector.
Split vector implementation.