Refactor the TestService and add hint