Create testMyVec.cpp

test a self-defined vec and test behaviors of overridden function.