The test is to ensure that the finalize_metadata doesn't throw an exception