Added a test for update_secondary_metadata