issue #5685: replace create functions with operator new in BakeLayerTest.js,BaseTestLayer.js,Box2dTest.js