Better pretty-printing in test program

Signed-off-by: John Else <john.else@citrix.com>