Fix test and add new test for scheduling published documents