Added more test to generateResponse.