expose isLoggedIn via a function; fixed corresponding unit tests
Refactored service mock creation and made it extensible to create mock for any service and pass any property/method name to override and new value