test for input