Add test for feature sampling