Tests: Add more users, more tests.
Correct use of value_or_setting() to avoid spurious warnings.

Reported by Kevin Fu. Introduced in e5e4858d4234ded40df72347f70ad70cc86a0dcb.