Closed #3427: fixed some mistakes in NewEventManagerTest.js