Re added helpful unit tests.

Sorted out Client name
Added Test mode to client to help when debugging example xml files.
Added test for when a field has same name as an existing complex type.