Modified regex in test to handle trailing period added to Carp in 1.25.