Extend the ConnectionHandlerTest and added a last successful command
field to RemoteConnection to verify if the currently sent command has
been transmitted or not.