Fix test for #10391 to have pub main