Fixed bugs in the RemoteConnectionTest, the ArduinoMock and the
RemoteConnection.
Added a few comments.