Fix remote tests not running
Created by: player1537
The remote tests weren't running because of some weird inconsistency with the monkeypatch
feature of pytest. This removes that monkeypatch requirement by allowing a wrapper_cls
argument to be passed to the submit_job_to_function
task.