Improve input test.