This tests that setting invalid header names, values and using an invalid method causes XMLHttpRequest to throw the appropriate exceptions.