Added tests for redirection when already logged in