path regexp start with ^
test compare regexp.toString() with expected result