Add a test for fixing ei. Refs #6773