add test for manual input mode.
delete unused header