[jobbrowser] Refactor and fix tests

Submitting only one job if possible and rely on this.
This should simplify the tests.
Refactor and moved to skiptest some parts that fail.
Some parts cold be moved to the mocked part.