Implement test_lack_of_www_authentication

* The test also requires some added complexities in
  TestBasicAuthMiddleware.DummyRequest.
* There's another test that will be necessary.