More test case debugging
Make request.headers available for task.apply.  Closes #1874