issue #5685: replace create functions with operator new in LabelTest.js