genericElementHandling: added unit test for generic spans