Added unit tests for LoggedIn