Fixed bugs in cron.py and added tests.

Cronjob.get_most_recent_occurence() failed under certain circumstances.
The tests even pass, absolutely unimaginable after writing/reading the code.