Fixed unreliable resume task tests
Update auth header of pending tasks