macros: fix ignoreCase comparison; add more tests