Produce n-dimensional test functions