Some tests for the convert_metadata method