[#3376] Added test for new behavior

- Added a test displaying that an exception is raised when passing the
  "e" modifier in a pattern