added test from acorn, fixed bug in forceRegexp path