Add test for input check.