Allow passing of a single dbname for testing