t: fix running w/o site or user configuration

Some tests are not skipped correctly in the absence of site/user
configuration.

Fix #1207.