Add a new API test

Ensure that a HTTP 401 response is generated when an unauthorized HTTP GET
request is made.