added testing function (to be used for large numbers of tests) as well as fiveD function to test