Merge "gui: add test for region sampling"