Just tested the IsInProvingGround() function and it will only return 1 after the player has talked to the NPC inside the scenario and the timer has finished counting down.
Lua Code:
local inProvingGround = IsInProvingGround();
--Returns: nil or 1.
--Remarks: Will only return 1 after the countdown timer has finished when the player is inside the proving grounds scenario.