used stdio and bsltestutil.h to eliminate cout

Eliminated use of cout by using bsltestutil.h, standard macro aliasing and cstdio functions.
Eliminated locally defined macros.