return XML from plugin instead of using builtin option
improve tests using return xml