fix checking of $Carp::VERSION in test