Added base class function to serialize test system to XML.
Updated test_platforms to emit serialized XML files when failures are detected to aid in debugging.