Add test for sample4