Fixed test for regular expressions