Complete test cases for validateRequest.