Perform a non-interactive source tree sync when building unit tests
Added a few more useful cpp snippets