write test for redirecting to root when signed-in user clicked the signin button