Tests for XMLHttpRequest authentication with only username or password set