Add tests for #9

This adds a failing test for the RotateEvent
Add test for rotate event
Better connection and log rotate management