added test for redirection if no current user exists