Added test to make sure state service go function is called upon successful login.