[vector] Move test code into separate file
4 files changed