Rework on TestVector and add TestGlobalMatrixInterface

- TestVector.cpp is renamed to TestGlobalVectorInterface.cpp
- Use a template function in checking vector interface so that we can easily check interface of any vector classes
- and a similar test for global matrix classes