Helper function for nodeunit to generate sets of tests using arrays of test data.