cover log_adding with tests