test of login_required