e3d03d8 Implement most test cases for validateRequest().