copied tests from blue2 branch, added MyRegex functionality