Testing spans and z-depth