Add test for reason regex parsing