Fixed some bugs with weirder corners of the cron, and added lots of tests