Use afterLoadXml in WMSCapabilities parser tests

The WMS Capabilities parser tests were created before the afterLoadXml
utility functions were created. This is now corrected.