Fix boolean bug
Improve GerritConnectionTest

To Handle connection correctly, listener is used effectively.