gs: Test EndPrimitive() functionality.