Tests for XMLHttpRequest authentication.