C++: Expanding Tests and Bare Code Example

Using a macro to hide a compiled example. plus expanding namespace and
scope guard tests