testing logrotate function