add test case for downsampling.