Input flick with unit tests