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