Add a test getUserEntryForName for trac #1976