You are essentially correct. Bassanio laments about how people are too concerned with outward appearances rather than the substance inside. He also thinks that, if this is indeed a test, nobody will suspect lead of carrying such treasure.