test internal log rotation when check_interval > 0

Added eunit test related to pull #128