A pilot and two maintenance staff members were conducting a ground run on a Mustang Helicopters Airbus AS350 B3 when the helicopter entered an uncommanded rotation, prompting the pilot to move the engine control to IDLE, shut off the fuel, and apply the rotor brake. The helicopter rotated about 540 degrees and stopped, with its tail rotor striking an aircraft maintenance engineer (AME) and an apprentice.