ensure user.name is returned as null when not set, updated tests accoringly