test for regex rails 4