The `sharding/names.js` test should be using assert.commandWorked and it should print more information if any of the assertions did not hold.