added test for isRegex widget