Use afterLoadXml in WMSCapabilities parser tests

The WMS Capabilities parser tests were created before the afterLoadXml
utility functions were created. This is now corrected.
Merge pull request #539 from bartvde/wmscapstests

Use afterLoadXml in WMSCapabilities parser tests (r=@twpayne)