Fixed pkg/config tests and use of 'metadata'