add tests comparing sum and mean values

 * use different sample thicknesses based on flag