#846 remove legacy code
#846 clean up the unit test for daily esm schedule generator