Refine testcase for dem_mosaic