Yes, dbname() returns a hardcoded legacy string from the old test suite.
The only helper we should be using is the get[Standalone|Shard|ReplicaSet|..]Info() to get the connection string.
After that the entire test should be completely isolated and not use any configuration options or helpers like that.