add test for schedule count entry before from