Test for proper input