tests: onLoggedIn & onLoggedOut tests added