random tests for the vector class