Support bypassing authentication in test mode.