Fixes regex tests.