Added two different ways of printing a shared_ptr.
Allowed the test to build correctly without shared_ptr support but to fail when run.
Authored by: andy_rushton 2011-01-09
Parent: [r414]
Child: [r416]