Checkpoint to add has_input.
Updated tests.