Fix issues with undefined levels in tess primitive discard tests