Fixed a bug where regex pattern was specefied in map it would still check for each key if there was a rule for it.
Implemented new test for this.