Adding test for #6527: Warn users when publication type won't appear in list.

#6527