write basic infrastructure for job manager test.
test that running state get set in jobmanager.