test routine for 1d homogeneous