Fix test for generated id field and index metadata