Test: Added test for add_to_existing_log method