tasks should return XMLHttpRequest
fix tests