Add a unit test for input completion

incomplete, but will help catch obvious wrong behaviors if we change
anything in the completions.