added testing for regex modifications