Functional tests

Unfortunately this doesn't seem to work with the test for incorrect job type because an exception is raised..  I guess let's just leave it this way