Does the soil have to be tested to determine if it is class B (or A) soil?

Yes. This must be done to verify that the soil is not actually class C soil and must therefore have a more protective slope, bench, or shoring system.