clean up and test if loginService.init() is called before other methods.