add a precond in the service for job submission unit testing.