updated test for isRegex widget