Add test for Connection#emitMEssage with callback function