Fix bug in regex matches with ^ and $
Rename tests