Fix JobContextFactory tests