Use Test::Exception instead of eval for croak