Refactoring VVTestBase class

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