TLDR - The test is valid, but the correct result may be unexpected without some understanding of the mathematical model behind PCM. A PCM "impulse" represents a normalized sinc function, not an impulse. Similar math applies to the edges of a square wave.
Impulses and square waves are mathematical constructs that exist in neither the analog domain nor in PCM encoding. They can be approximated by both up to the limits of the hardware (analog) or sample rate (PCM).
The
Wikipedia Nyquist sampling theorem introduction gives a great explanation of the true meaining of PCM samples. The sampling theorem is the mathematical basis for PCM, basically the mathematical model showing that sampling works, and the constraints under which it works. In this model, each sample represents a normalized sinc function, and the sum of the normalized sinc functions represented by all the samples gives the reconstruction. So when we see "pre-ringing" or "time smearing" in an impulse (or square wave) response of a reconstruction filter, it is
not a deficiency or artifact of the filter; it is the correct reconstruction according to the mathematical model that defines PCM encoding.