Written functional tests for input validation.