Added tests for login_required