Fix to Downsample operation, more tests of visitor