Refactoring VVTestBase class

+Replaced one bit ad-hock reference counter pointer implementation
by std::shared_ptr
+Minor style fix