Tests for XML and JSON switches.