Update mocha script for test socket event