Add unit tests for LayerController._isXmlContent