Change basic auth test to check invalid auth

The current basic BasicAuth test only checks for the presence of the Authorization header. This branch adds a method that will send invalid credentials to the server, and check to see if the server is properly authorizing requests.