make test program test 2d, 3d and 4d all at once.