Divide vec unit tests into separate functions