testing connection and updating metadata updated