Add tests for `add_author_and_date` function