Add test that fails improperly formed regex