Tweak on query tests; should work on this!! :D
Re-enable 'restricted' mode, but as a `facility`-defined function (since it depends on a `facility` setting)