fixed update metadata tests