Joblog bugfix

Fixes the bug that makes the job log to have only the first test output, a functional test for it and other small things.
Dammit!