pval function

Extract a p-value from a test result.