Add basic tests for run_locally() and run_on_gearman()