According to http://www.postgresql.org/docs/9.1/static/catalog-pg-authid.html pg_authid is not publicly readable.
A database is perfectly usable as a non-privileged user, so the test should work as that user and not require admin rights.