Refactoring the test_vecpf.c
Refactoring the test_vecpf.c

- Remove duplicate code.
- Add a test macro to validate outputs.

Signed-off-by: Alisson Linhares de Carvalho <ab0fc51f93dd21c93661db7c2e8077b673785727@linux.vnet.ibm.com>

Libvecpf/libvecpf,Libvecpf/libvecpf