wrote regex matching prefix test that passed