more unit tests for input validation