Tests for validating input