fix inputService
fix use and user case, refactor spec