new randomized test for vector