At my airline, engine runs with pax onboard isn't an issue, but the crew must be briefed and present for the engine run (for obvious purposes).
Engine are not to be run above idle at the gate with or without pax onboard. It appears that is what has happened here.