I think it is usually written into the operators ops manual. Mine allows it so long as no emergency’s are simulated, the stipulation is that the passengers must be potential students or actual students.
Its all good unless something goes wrong, then all bets are off.