Fix for unit test that accounts for _id field and index being added to metadata