added tests for updating metadata and relationship metadata