Add test for opt normalize_metadata