WebJobs: Fixes and tests

Fixed some issues,
Added continuous jobs tests
And fixed issues found by these tests.