Yes, it's risky. However, it is, what it is. PR card is expiring in a month and I need to apply for a new one on a Canadian soil as well. So, seriously considering to jump in 14-day quarantine. Literally, no other way here...
Echoing the many caveats, the logistics of accomplishing a turnaround test attendance within the airport are so daunting as to be, well, hardly worth considering, if at all feasible . . . suggesting most likely not.
Note, among other things, that a person is NOT IN Canada unless and until they have cleared border control, and then actually entered Canada. (Being within the physical territorial limits does not do it.)
Been awhile since I went through the process at Pearson to fly to the U.S., so apart from memory issues there's a likelihood things have changed. But apart from that, my sense is just attempting to do this at the least RISKS triggering a flurry of red flags to be followed by long delays and non-routine processing of a rather inconvenient sort, with further risk of things going askew.
Will further observe, without going into tangents, that there are other risks lurking in the wings here. This appears to be a situation in which it would be prudent to keep things as simple and direct as possible. Living abroad while a citizenship application is pending appears to go OK for many, but there are risks, potential pitfalls, and more than a few somewhat wide cracks into which things can fall. At the very, very least, be especially careful to not make any misrepresentations or otherwise be evasive, let alone deceptive, including in regards to your employment or where you live. Beware of the tendency of some commentary here to be based on what people have been able to, more or less,
get-away-with (or so they think, at least for the short-term), which is not the same, not at all, in it being OK.