Added test for not-logged in user