Replaced existing Vector tests.
Only check memory if a flag is set.
Merge branch 'add-gtest' into gtest-tests