Test functions for John Cook code to compare to Mark Joshi