Fix bug in input test.