remove duplicate code in test-vectors