Agent-based Testing of Extended Reality Systems