Fix set-metadata behavior on store metadata version; added test