Improve the auth handler unit tests.