genericElementHandling: enhanced unit test for generic spans