fixed duplication in location field, fixed 2 tests, refs #9813
fixed testGetEmptyMetadata, refs #9813