Set correct job status if tests failed. Removed result model and view. Handle exceptions from api calls.