Recurse into child nodes in XML tests.
Test the username/password credential XML message.
Test the keypair credential XML message.
Check XML messages have the correct number of children.