add test case for user-logged in