Added test to auth exceptions.