Add emit and broadcast tests for room.js