Improve job system handlers API
Pass remote mode as argument as well
Fix tests