correction in loading metadata for testing