Added integration test which uses local job and files

Also added unit test for JobsEngine.submitJob().