Update tests_getMetadata.R

Corrected error