Fixing unit test issue

Mocked IsLoggedIn to fix test