Refactor: libcrmcommon: Add XML test teardown function
Backport of e2037f806
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>