add test mode for omniauth