Test adding duplicate error.

refs #11445