[FIXED JENKINS-9120] RingBufferLogHandler has int that needs to be reset.
[JENKINS-9120] Add test
Noting #1028