Refactor code to resolve jobs in WAIT_ASYNC into JQManagedJob. Add tests...

....
Bad error message, should be `job->resolveWaitAsync()`, not `job->run()`.