fix bug in public schedule pdf and add more tests for schedule