After you've travelled through the cave you'll find N near the exit and, as usual, he wants to battle. Once you've defeated him, Professor Juniper and Bianca come along, much to N's disgust. He appears to have a problem with Juniper due to her research, and leaves the cave. The others exit soon after, and you're free to continue your journey.