input validation tests