I think you simply forgot the declaration in the beginning of the test:
function testbatchmintunique() external { string[10] memory names; string[10] memory descriptions; string[10] memory uris; ... }