Add tests for was_published_recently method