Added tests of authentication exceptions.