Fix test regex escape