chore(agent): centralize NewJob/NewUnit invocations in agent state test
chore(job): centralize NewUnit invocations in job_test
chore(registry): handle NewUnit errors in registry tests
chore(sign): handle NewUnit errors in signing tests