Adaptive Testing for LLM-Based Applications: A Diversity-based Approach