Merge pull request #16 from bguerin/master

Adding unit test for cron runmode