Fixed test compatibility for node-v0.10.0.

This fix does not update MQTT to the new stream2 API, it just fixes the tests so that they run on node v0.10.