tests: Add comps metadata
repomd: Add cr_repomd_get_record function
misc: Add default implementation of xml warning callback.