Made idea controller test pass, making a fake of socketio client emit method