Implement most test cases for validateRequest().